package com.taobao.me.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.taobao.me.model.po.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author erebus
 */
@Mapper
public interface UsersMapper extends BaseMapper<Users> {

    /**
     * 根据用户id查询
     */
    @Select("select * from users where user_id = #{userId}")
    Users selectByUserId(int userId);


}
